package com.lizhi.rpc.controller;

import com.lizhi.rpc.handler.RecvDoctorHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: lizhi
 * @Description:
 * @Date: create in 2020/12/16 10:27
 */
@Slf4j
@RestController
@RequestMapping(value = "/api/rpc/doctor")
public class RecvDoctorController {

    @Resource
    private RecvDoctorHandler recvDoctorHandler;

    @PostMapping(path = "/recvDoctor")
    public String recv(@RequestBody String json){
        return recvDoctorHandler.recvDoctor(json);
    }
}
